package com.chanjiedata.changbs.adapter;

import android.content.Context;
import android.text.TextUtils;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.chanjiedata.changbs.R;
import com.chanjiedata.changbs.proto.MemberOuterClass;
import com.chanjiedata.changbs.proto.Merchantservice;

import java.util.List;

/**
 * 文件名 : ProgressAdapter
 * 创建者 : MangoWang
 * 创建日期 : 2019/11/25 11:50
 * 微信 : MangoWaWang
 * 邮箱 : 763482205@qq.com
 * 描述 : TODO
 */

public class CreateShopAdapter extends BaseQuickAdapter<Merchantservice.shop, BaseViewHolder> {
    public CreateShopAdapter(Context context, List<Merchantservice.shop> dataList) {
        super(R.layout.item_create_shop, dataList);
    }

    @Override
    protected void convert(BaseViewHolder helper, Merchantservice.shop item) {
        if (item == null) return;
        helper.setText(R.id.tv_name,item.getMerchantName())
                .setText(R.id.tv_number,"有"+item.getStatus()+"张卡片");


    }



}